package pl.makowski.neotripletriad.database;

import java.util.HashMap;

import pl.makowski.neotripletriad.database.CardTypeProviderMetaData.CardTypeTableMetaData;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;

public class CardTypeProvider extends ContentProvider {
	
	public static final String TAG = CardTypeProvider.class.getSimpleName();	
	public static final Uri CONTENT_URI = 
        Uri.parse("content://pl.makowski.neotripletriad.cardcontentprovider");	
	public static final String CARD = "card";
	
	private static HashMap<String, String> sCardProjectionMap;
	static 
	{
		sCardProjectionMap = new HashMap<String, String>();
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_NAME,
				CardTypeTableMetaData.CARD_TYPE_NAME);
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_LEVEL,
				CardTypeTableMetaData.CARD_TYPE_LEVEL);
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_ELEMENT,
				CardTypeTableMetaData.CARD_TYPE_ELEMENT);
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_DRAWABLE_R,
				CardTypeTableMetaData.CARD_TYPE_DRAWABLE_R);
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_DRAWABLE_B,
				CardTypeTableMetaData.CARD_TYPE_DRAWABLE_B);
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_POWER_DOWN,
				CardTypeTableMetaData.CARD_TYPE_POWER_DOWN);
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_POWER_LEFT,
				CardTypeTableMetaData.CARD_TYPE_POWER_LEFT);
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_POWER_RIGHT,
				CardTypeTableMetaData.CARD_TYPE_POWER_RIGHT);
		sCardProjectionMap.put(CardTypeTableMetaData.CARD_TYPE_POWER_TOP,
				CardTypeTableMetaData.CARD_TYPE_POWER_TOP);
	}

	@Override
	public Cursor query(Uri uri, String[] projection, String selection,
			String[] selectionArgs, String sortOrder) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public int delete(Uri arg0, String arg1, String[] arg2) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String getType(Uri uri) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Uri insert(Uri uri, ContentValues values) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean onCreate() {
		// TODO Auto-generated method stub
		return false;
	}



	@Override
	public int update(Uri uri, ContentValues values, String selection,
			String[] selectionArgs) {
		// TODO Auto-generated method stub
		return 0;
	}

}
